package cn.itcast.java.thread;

/**
 * Author itcast
 * Date 2021/10/14 16:53
 * Desc TODO
 */
public class ThreadDemo02 {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        Thread thread = new Thread(myThread);
        thread.start();
    }

    public static class MyThread implements Runnable{

        @Override
        public void run() {
            for (int i = 0; i < 10; i++) {
                System.out.println(i);
            }
        }
    }
}
